package com.lin.server;

import com.lin.dataobject.DataDictionary;
import com.lin.dataobject.DataDictionaryDetail;
import com.lin.dto.DictionaryDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by MYQ on 2017/10/28.
 */
public interface DataDictionaryService {
    DataDictionary findOne(Integer id);

    List<DataDictionary> findAll(String name,String code, String startTime, String endTime);
    Page<DataDictionary> findAll(String name,String code, String startTime, String endTime, Pageable pageable);


    DictionaryDTO save(DictionaryDTO dictionaryDTO);

    void del(DataDictionary dataDictionary);

    Long getSize(String name,String code, String startTime, String endTime);

    List<DataDictionary> findAll();

    List<DataDictionaryDetail> findDetail(Integer id);

    DictionaryDTO update(DictionaryDTO dictionaryDTO);

    List<DataDictionaryDetail> getDetailByCode(String code);
}
